﻿<%@ Page Language="C#" MasterPageFile="~/FrontviewWebpage/FrontView.Master" AutoEventWireup="true" CodeBehind="FeedBack.aspx.cs" Inherits="EhotelSystem.FrontviewWebpage.FeedBack" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Login" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<script language="javascript">
    function ValidateComments(sender, args)
    {
        if (args.Value.length > 10)
          args.IsValid = false;
        else
          args.IsValid = true;
        
    }
</script>

  <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" BackColor="#F7F6F3" 
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
        Font-Names="Verdana" Font-Size="0.9em" Height="161px" Width="987px" 
        onfinishbuttonclick="Wizard1_FinishButtonClick">
        <StepStyle BorderWidth="0px" ForeColor="#5D7B9D" VerticalAlign="Top" />
        <WizardSteps>
            <asp:WizardStep ID="WizardStep1" runat="server" Title="ContactInfo">
                <table class="style1">
                    <tr>
                        <td style="width: 178px" align="right" >
                            Your Name:</td>
                        <td style="width: 220px">
                            <asp:TextBox ID="txtcontactName" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtcontactName" ErrorMessage="Please enter your name">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 178px" align="right">
                            E-Mail:</td>
                        <td style="width: 220px">
                            <asp:TextBox ID="txtcontactEmail" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtcontactEmail" 
                                ErrorMessage="You must enter your email address">*</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtcontactEmail" 
                                ErrorMessage="Enter a valid email address (tudtoo@hotmail.com)" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 178px">
                            &nbsp;</td>
                        <td colspan="2">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep ID="WizardStep2" runat="server" Title="Comments">
                <table class="style1">
                    <tr>
                        <td style="width: 145px; height: 64px" align="right">
                            Comments (no more than 20 characters):</td>
                        <td style="height: 64px; width: 241px">
                            <asp:TextBox ID="txtcontactComment" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </td>
                        <td style="height: 64px">
                            <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                ClientValidationFunction="ValidateComment" 
                                ControlToValidate="txtcontactComment" 
                                ErrorMessage="No more than 20 characters please" 
                                OnServerValidate="CustomValidator1_ServerValidate">*</asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 145px" align="right">
                            Rating (1-5):</td>
                        <td style="width: 241px">
                            <asp:TextBox ID="txtcontactRating" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                ControlToValidate="txtcontactRating" 
                                ErrorMessage="Use a number between 1 and 5" MaximumValue="5" MinimumValue="1">*</asp:RangeValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 145px">
                            &nbsp;</td>
                        <td colspan="2">
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep ID="WizardStep3" runat="server" StepType="Finish" Title="Summary">
                Thank you!!!!!</asp:WizardStep>
            <asp:WizardStep ID="WizardStep4" runat="server" StepType="Complete" Title="Complete">
            </asp:WizardStep>
        </WizardSteps>
        <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" 
            Width="50px" />
        <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" 
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#284775" />
        <SideBarStyle BackColor="#7C6F57" BorderWidth="0px" Font-Size="0.9em" 
            VerticalAlign="Top" Width="250px" />
        <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" 
            Font-Size="0.9em" ForeColor="White" HorizontalAlign="Left" />
    </asp:Wizard>
   
</asp:Content>
